#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<assert.h>
extern char** environ;
int main()
{
  printf("process is running...\n");
  pid_t id =fork();
  assert(id!=-1);
  if(id==0)
  {
    sleep(1);
    putenv("myval=100");
    
    execle("./execle1","execle1","-a","-b",NULL,environ);
  }
  pid_t rid = waitpid(id,NULL,0);
  if(rid>0)
  {
    printf("wait sucess\n");
  }

  return 0;
}
